package sparksql.say8.lesson02

import org.apache.spark.sql.{DataFrame, SparkSession}

/**
  * Created by Administrator on 2018/5/4.
  */
object SparkSessionTest {
  def main(args: Array[String]): Unit = {
    val spark = SparkSession
      .builder()
      .master("local")
      .appName("SparkSessionTest")
      .getOrCreate()

    val df: DataFrame = spark.read.json("D:\\1711班\\第十三天\\资料\\resources\\people.json")

    df.show()
  }

}
